package class_sources;

import android.graphics.Bitmap;

public class ListItems {
	public static interface Item {
		
		public boolean isSection();
		public boolean isButton();
		public boolean isSearchResult();
		public boolean isImageProfile();
		public boolean isUserProfile();
		public boolean isEntryItem();
		public boolean isHeaderItem();
		public boolean isTripRequestItem();
		public boolean isRatingbarItem();
		public boolean isTripHistoryItem();
		public boolean isRankDetailed();
	}
	public static class EntryItem implements Item{

		public  String title;
		public String subtitle;

		public EntryItem(String title, String subtitle) {
			this.title = title;
			this.subtitle = subtitle;
		}
		
		@Override
		public boolean isSection() {
			return false;
		}

		public boolean isUserProfile() {
			return false;
		}
		@Override
		public boolean isButton() {
			return false;
		}

		@Override
		public boolean isSearchResult() {
			return false;
		}

		@Override
		public boolean isImageProfile() {
			return false;
		}

		@Override
		public boolean isEntryItem() {
			
			return true;
		}

		@Override
		public boolean isHeaderItem() {
			
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			
			return false;
		}
		public boolean isRatingbarItem() {
			
			return false;
		}

		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}


	}
	public static class SectionItem implements Item{

		private final String title;
		
		public SectionItem(String title) {
			this.title = title;
		}
		
		public boolean isUserProfile() {
			return false;
		}
		
		public String getTitle(){
			return title;
		}
		
		@Override
		public boolean isSection() {
			return true;
		}

		@Override
		public boolean isButton() {
			return false;
		}

		@Override
		public boolean isSearchResult() {
			return false;
		}

		@Override
		public boolean isImageProfile() {
			return false;
		}

		@Override
		public boolean isEntryItem() {
			
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			
			return false;
		}
		public boolean isRatingbarItem() {
			
			return false;
		}

		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}


	}
	public static class ButtonItem implements Item{
		private String title;
		public ButtonItem(String title)
		{
			this.title=title;
		}
		@Override
		public boolean isSection() {
			return false;
		}
		public boolean isUserProfile() {
			return false;
		}
		@Override
		public boolean isButton() {
			return true;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		@Override
		public boolean isSearchResult() {
			return false;
		}
		@Override
		public boolean isImageProfile() {
			return false;
		}
		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

		
	}
	public static class SearchResultEntryItem implements Item
	{
		public String resultName,userID,vehicleStatus,vehicleProps,allowCigarette,allowedPplCount,isCost,costValue,target,gender,imgUrl="YOK",rank;
		public Bitmap imgProfile;
		@Override
		public boolean isSection() {
			return false;
		}
		public boolean isUserProfile() {
			return false;
		}
		@Override
		public boolean isButton() {
			return false;
		}

		@Override
		public boolean isSearchResult() {
			return true;
		}

		@Override
		public boolean isImageProfile() {
			return false;
		}
		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

	}
	public static class ImageProfileItem implements Item{
	public String imgUrl,gender;
	public Bitmap imgProfile;
	public ImageProfileItem(String imgUrl,Bitmap imgProfile,String gender)
	{
		this.imgProfile=imgProfile;
		this.imgUrl=imgUrl;
		this.gender=gender;
	}
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isUserProfile() {
			return false;
		}
		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return true;
		}
		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

		
	}
	public static class UserProperties implements Item{
		public String imgUrl,password;
		public Bitmap imgProfile;
		public UserProperties(String imgUrl,Bitmap imgProfile,String Password)
		{
			this.imgProfile=imgProfile;
			this.imgUrl=imgUrl;
			this.password=Password;
		}
			@Override
			public boolean isSection() {
				// TODO Auto-generated method stub
				return false;
			}
			public boolean isUserProfile() {
				return true;
			}
			@Override
			public boolean isButton() {
				// TODO Auto-generated method stub
				return false;
			}

			@Override
			public boolean isSearchResult() {
				// TODO Auto-generated method stub
				return false;
			}

			@Override
			public boolean isImageProfile() {
				// TODO Auto-generated method stub
				return false;
			}
			@Override
			public boolean isEntryItem() {
				// TODO Auto-generated method stub
				return false;
			}
			@Override
			public boolean isHeaderItem() {
				// TODO Auto-generated method stub
				return false;
			}
			@Override
			public boolean isTripRequestItem() {
				// TODO Auto-generated method stub
				return false;
			}
			public boolean isRatingbarItem() {
				// TODO Auto-generated method stub
				return false;
			}
			@Override
			public boolean isTripHistoryItem() {
				// TODO Auto-generated method stub
				return false;
			}
			@Override
			public boolean isRankDetailed() {
				// TODO Auto-generated method stub
				return false;
			}

			
		}
	public static class HeaderItem implements Item{
		public int col;
		public HeaderItem(int black)
		{
			this.col=black;
		}
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isUserProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return true;
		}
		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isRatingbar() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

		
	}
	public static class TripRequestItem implements Item{
		public String userName,name,surname,imgURL="YOK",sender,emergency,isDriver,gender;
		public Bitmap imgProfile;
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isUserProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return true;
		}
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

		
	}
	public static class RatingBar implements Item{
		public String rank,title;
		
		public RatingBar(String title,String rank) {
			this.rank=rank;
			this.title=title;
		}
		
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isUserProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return true;
		}
		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}

		
	}
	public static class RankDetail implements Item
	{
		public String rank,name,comment,title;
		public RankDetail (String name,String comment,String rank)
		{
			this.rank=rank;
			this.comment=comment;
			this.name=name;
		}
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isUserProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return true;
		}
	}
	public static class TripHistoryItem implements Item
	{
		public String tripID,driverID,passengerID,isConfirmed,emergency,senderID;
		public Bitmap driverImage,passengerImage;
		@Override
		public boolean isSection() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isButton() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isSearchResult() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isImageProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isUserProfile() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEntryItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isHeaderItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripRequestItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isRatingbarItem() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isTripHistoryItem() {
			// TODO Auto-generated method stub
			return true;
		}

		@Override
		public boolean isRankDetailed() {
			// TODO Auto-generated method stub
			return false;
		}
		
	}
}
